# -*- ecoding: utf-8 -*-
# @Author: Wick
# @Time: 2024-02-23 22:38
str1 = "hello pyhton"

for i in str1:
    print(i, end = ' ')
print()
print(len(str1))

counter = str1.count("l")
print(counter)

print(str1.index("lo"))

print(str1.find("p"))

str1 = '   hello  '
print(str1.strip())

str2 = "hello"
str_list = list(str2)
print(str_list)

str3 = "how,are,you"
print(str3.split(','))

str4 = "hello\nworld\nhowareyou"
str4_list = str4.splitlines()


print("".join(str_list))
print(",".join(str4_list))